package com.xiaoy.core.basic.organization.entity;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.util.store.config.ConfigTable;

@Entity
@Table(name = ConfigTable.Basic.USER)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) 
@SequenceGenerator(sequenceName = ConfigTable.Basic.USER+"_SEQ", name = ConfigTable.Basic.USER+"_SEQ", allocationSize = 1)
public class User extends Party {

	private String email;
	private String username;
	private String password;
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
} 
